// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "CoreMinimal.h"

class UWidgetGroupManager;
class UWGI_UserWidget;

/**
 *
 */
static class WIDGETGROUP_API WidgetGroupLibrary
{
	static UWidgetGroupManager* GroupManager;
	static void EnsureManagerValid(APlayerController* Outer);

public:

	static void ClearWidgetGroupManager();

	static void AddWidgetToGroup(UWGI_UserWidget* inWidget, bool bRemoveLast);
	static void RemoveWidgetFromGroup(UWGI_UserWidget* inWidget, bool bRemoveAll);

#if WITH_EDITOR
	static void GameIsEnd(UWGI_UserWidget* inWidget);
#endif
	
};









